package com.chenhs.oop.study.线程;

/**
 * @className: com.chenhs.oop.study.线程-> ThreadImp
 * @description: 实现 Runnable接口 实现多线程
 * @author: chenhs
 * @createDate: 2024-03-09 16:45
 * @version: 1.0
 */
public class My02Thread implements Runnable {
    private String name;

    public My02Thread(String name) {
        this.name = name;
    }
    @Override
    public void run() {
        for (int i = 0; i <100 ; i++) {
            System.out.println(name);
        }
    }
}
